package com.qdev.apps.core.domain;

import java.io.Serializable;
import java.util.Date;

/**
 * @author Quake Wang
 * @since 2004-10-27
 * @version $Revision: 1.1 $
 */
public final class AuditInfo implements Serializable {
    private Date lastUpdated;
    private Date created;
    private String updatedBy;
    private String createdBy;

    public Date getCreated() {
        return created;
    }

    public String getCreatedBy() {
        return createdBy;
    }

    public Date getLastUpdated() {
        return lastUpdated;
    }

    public String getUpdatedBy() {
        return updatedBy;
    }

    public void setCreated(Date created) {
        this.created = created;
    }

    public void setCreatedBy(String createdBy) {
        this.createdBy = createdBy;
    }

    public void setLastUpdated(Date lastUpdated) {
        this.lastUpdated = lastUpdated;
    }

    public void setUpdatedBy(String updatedBy) {
        this.updatedBy = updatedBy;
    }
    
    public String toString() {
        return "created by: " + createdBy + " at " + created + ", last updated by: " + updatedBy + " at " + lastUpdated;
    }
}